home *** CD-ROM | disk | FTP | other *** search
XSetup plugin | 2002-03-07 | 1.5 KB | 61 lines |
- "FILE"="Xteq Systems X-Setup Plugin 5.0"
- "TYPE"="6"
- "COUNT"="1"
- "UIPATH 1"="Program Options\Built in Windows Apps\Disk Defragmenter\"
- "UIPATH 2"="System\File System\Windows NT/2K/XP Options"
- "NAME"="Boot Optimization"
- "VERSION"="1.05"
- "OSVERSION"="000001"
- "LANGUAGE"="VBScript"
- "TEXT 1"="Enable Boot Optimizer"
- --"TEXT 2"="Enable Boot Prefetcher"
- "DESCRIPTION 1"="Option 1: Enables or disables Boot Optimization using Disk Defrag in Windows XP."
- --"DESCRIPTION 2"="Option 2: Enables or disables Boot Optimization using prefetching in Windows XP."
- "AUTHOR"="Xteq Systems (CptSiskoX)"
- "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
- "COMMENT 1"="Found during registry exploration of Windows XP."
-
-
- sP1="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Dfrg\BootOptimizeFunction\Enable"
- 'sP2="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Prefetcher\BootFilesOptimized"
-
-
-
- Sub Plugin_Initialize
- s=RegReadValue(sP1)
- if UCase(s)="Y" then
- Call SetUIElement(1,true)
- end if
-
- 's=RegReadValue(sP2)
- 'if s=1 then
- ' Call SetUIElement(2,true)
- 'end if
-
- End Sub
-
- Sub Plugin_CheckData(ElementIndex)
- End Sub
-
- Sub Plugin_Apply(ElementIndex,ElementSubIndex)
- b=GetUIElement(1)
- if b=true then
- Call RegWriteValue(sp1,"Y",1)
- else
- Call RegWriteValue(sp1,"N",1)
- end if
-
- ' b=GetUIElement(2)
- ' if b=true then
- ' Call RegWriteValue(sp2,1,2)
- ' else
- ' Call RegWriteValue(sp2,0,2)
- ' end if
-
-
- Call Restart()
- End Sub
-
- Sub Plugin_Terminate
- End Sub
-